package com.redhat.auth.log.common;

import java.util.List;

import com.redhat.auth.log.annotation.OperaType;
import com.redhat.auth.log.annotation.ValueType;

/**
 * 值标签的描述
 * @author lingen.liu
 *
 */
public class ValueBean {
	/**
	 * 操作行为，是对数据库的新增？修改？还是删除操作
	 */
	private OperaType operaType;
	
	/**
	 * 关键属性，关键属性标志着可以定位一条记录的属性值，如主键等
	 */
	private List<QueryValueBean> queryKeyValues;
	
	/**
	 * 分析并获取一个数据库对象是否存在级联关系
	 */
	private List<String> cascadeProperties;
	
	/**
	 * 实体对象Class
	 */
	private Class entity;

	
	public OperaType getOperaType() {
		return operaType;
	}

	public void setOperaType(OperaType operaType) {
		this.operaType = operaType;
	}
	
	public List<QueryValueBean> getQueryKeyValues() {
		return queryKeyValues;
	}

	public void setQueryKeyValues(List<QueryValueBean> queryKeyValues) {
		this.queryKeyValues = queryKeyValues;
	}

	public Class getEntity() {
		return entity;
	}

	public void setEntity(Class entity) {
		this.entity = entity;
	}

	public List<String> getCascadeProperties() {
		return cascadeProperties;
	}

	public void setCascadeProperties(List<String> cascadeProperties) {
		this.cascadeProperties = cascadeProperties;
	}
	
}
